Set Day Progress Timer
(17 actions, 13 KB)
0 Get Current Focus »
2
3
12
1 DataJar > GetValueIntent
➔ My Focus Mode
»
2
3
12
keyPath
:
My Focus Mode
2 If
[1 My Focus Mode
as Dictionary’s Keys
]
contains
[0 Current Focus]
3 Get Dictionary Value for
[0 Current Focus]
.endTime
in
[1 My Focus Mode]
»
4 Get Dates from
[3 Dictionary Value]
»
5 Get Time Between
[CurrentDate]
and
[4 Dates]
in
Seconds
»
8
13
6 If
[DeviceDetails
’s OS
]
is
iOS
7 Cancel Current Timer
8 Start Timer for
[5 Time Between Dates]
sec
IntentAppDefinition
:
{ "TeamIdentifier": "0000000000", "BundleIdentifier": "com.apple.clock", "Name": "Clock", "ExtensionBundleIdentifier": "com.apple.mobiletimer-framework.MobileTimerIntents" }
9 End If
10 If
[DeviceDetails
’s OS
]
is
macOS
11 RedHotTimer > RunCommandIntent
command
:
cancel
12 Get Dictionary Value for
[0 Current Focus]
.phase
in
[1 My Focus Mode]
»
13 RedHotTimer > TimerIntent
interval
:
[5 Time Between Dates]
sec
label
:
⏱️ Quarter
[12 Dictionary Value]
/ 4
color
:
white
14 End If
15 End If ▵
2
16 Stop This Shortcut